-- vim: set ft=lua :

conky.config = {
    out_to_x             = false,
    background           = false,
    out_to_console       = true,
    update_interval      = 2,
    total_run_times      = 0,
    short_units          = true,
    pad_percents         = 3,
    override_utf8_locale = true,
};

conky.text = [[
,[
    {
        "full_text": " CPU: $acpitemp°C [$cpu%] ",
        "color":"\#DC322F"
    },
    {
        "full_text": " MEM: $mem/$memmax ",
        "color":"\#B58900"
    },
    ${if_up wlp15s0}
    {
        "full_text": " WLAN: ${wireless_essid wlp15s0} (${addr wlp15s0}) [${wireless_link_qual_perc wlp15s0}%] ",
        "color":"\#2AA198"
    },
    {
        "full_text": " UP: ${upspeed wlp15s0} DL: ${downspeed wlp15s0}",
        "color": "\#B58900"
    },
    $else${if_up enp8s0}
    {
        "full_text": "eth0",
        "color":"\#2AA198"
    },
    $else
    {
        "full_text": " ~ no connection ",
        "color":"\#2AA198"
    },
    $endif$endif
    {
        "full_text": " ROOT: ${fs_used /}/${fs_size /} ",
        "color": "\#2AA198"
    },
    ${if_existing /sys/class/power_supply/BAT0}
    {
        "full_text": " BAT: ${battery BAT0} [${battery_percent BAT0}%] ",
        "color":"\#7C71C4"
    },
    $endif
#    ${if_pa_sink_muted}
#    {
#        "full_text": " SND: [XX] ",
#        "color":"\#268BD2"
#    },
#    $else
#    {
#        "full_text": " SND: [${pa_sink_volume}%] ",
#        "color":"\#268BD2"
#    },
#    $endif
    {
        "full_text": "$uptime_short $nodename ",
        "color": "\#9e9e9e"
    },
    {
        "full_text": " ${time %a %d %b %H:%M} ",
        "color": "\#bdbdbd"
    }
]
]];
